package com.letoken.platform.repo.app.req.mall;

import com.baomidou.mybatisplus.annotation.TableField;
import com.letoken.platform.pub.annotation.content.ContentCheck;
import com.letoken.platform.pub.annotation.content.ContentEnum;
import com.letoken.platform.repo.mall.po.AppMallDocumentInfo;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import org.hibernate.validator.constraints.Length;

import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.time.LocalDateTime;

@Data
@ApiModel(value = "商家入驻主体信息", description = "商家入驻申请对象")
public class MallSettleInStep2Req implements Serializable {


    @ApiModelProperty("店铺ID")
    @NotNull(message = "80000007")
    private Integer mallId;

    @ApiModelProperty("入驻人姓名")
    @NotBlank(message = "80000007")
    @Length(min = 1,max = 20,message = "80407023")
    @ContentCheck(type = ContentEnum.LOCAL_CONTENT, allowNull = "true",message = "80407036")
    private String name;

    @ApiModelProperty("身份证号")
    @NotBlank(message = "80000007")
    /*@Length(min = 1,max = 40,message = "80407023")
    @ContentCheck(type = ContentEnum.LOCAL_CONTENT, allowNull = "true",message = "80407037")*/
    private String card;

    @ApiModelProperty("正面")
    @NotBlank(message = "80000007")
    @Length(min = 1,max = 512,message = "80407023")
    private String idFront;

    @ApiModelProperty("反面")
    @NotBlank(message = "80000007")
    @Length(min = 1,max = 512,message = "80407023")
    private String idOpposite;

    @ApiModelProperty("是否有营业执照0无 1有")
    @NotNull(message = "80000007")
    private Integer isBusiness;

    @ApiModelProperty("是否三证合一")
    private Integer threeSyndromesInOne;

    @ApiModelProperty("营业执照url")
    private String businessUrl;

    @ApiModelProperty("统一社会信用代码")
    @ContentCheck(type = ContentEnum.LOCAL_CONTENT, allowNull = "true",message = "80407038")
    private String creditCode;

    @ApiModelProperty("0.固定有效期 1.长期")
    private Integer validity;

    @ApiModelProperty("有效期限")
    private LocalDateTime validityTime;




}
